import request from '@/utils/request'

const memberApi = {
  // ruleDefine: '/frontend/society_rule/get_somerules'
  ruletable: 'frontend/argument_rule/get_argument_list ',
  rulechange: 'frontend/argument_rule/get_argument_rule',
  rulechangeok: 'frontend/argument_rule/update_argument_rule',
  byevalue: 'frontend/society_rule/get_skip_num',
  byechange: 'frontend/society_rule/update_skip_num',
  fuzzysearch: 'frontend/argument_rule/search',
  mostamend: 'frontend/argument_rule/get_arr_rule'
}

export function ruletable (parameter) {
  return request({
    url: memberApi.ruletable,
    method: 'post',
    data: parameter,
    headers: {
      'Content-Type': 'application/formdata;charset=UTF-8'
    }
  })
}

export function rulechange (parameter) {
  return request({
    url: memberApi.rulechange,
    method: 'post',
    data: parameter,
    headers: {
      'Content-Type': 'application/formdata;charset=UTF-8'
    }
  })
}

export function rulechangeok (parameter) {
  return request({
    url: memberApi.rulechangeok,
    method: 'post',
    data: parameter,
    headers: {
      'Content-Type': 'application/formdata;charset=UTF-8'
    }
  })
}

export function byevalue (parameter) {
  return request({
    url: memberApi.byevalue,
    method: 'post',
    data: parameter,
    headers: {
      'Content-Type': 'application/formdata;charset=UTF-8'
    }
  })
}

export function byechange (parameter) {
  return request({
    url: memberApi.byechange,
    method: 'post',
    data: parameter,
    headers: {
      'Content-Type': 'application/formdata;charset=UTF-8'
    }
  })
}

export function fuzzysearch (parameter) {
  return request({
    url: memberApi.fuzzysearch,
    method: 'post',
    data: parameter,
    headers: {
      'Content-Type': 'application/formdata;charset=UTF-8'
    }
  })
}

export function mostamend (parameter) {
  return request({
    url: memberApi.mostamend,
    method: 'post',
    data: parameter,
    headers: {
      'Content-Type': 'application/formdata;charset=UTF-8'
    }
  })
}
